package com.rainbow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rainbow.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> roles();

    int addNewRole(@Param("role") String role, @Param("roleZh") String roleZh);

    int deleteRoleById(Long rid);
}
